package com.easydisk.admin.model.req;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import org.springframework.beans.factory.annotation.Autowired;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AddUserReq {

    @NotBlank(message = "用户名不能为空")
    @Length(min = 4, max = 16, message = "用户名长度4-16之间")
    private String username;

    private String mobile;

    private String email;


    @Length(min = 6, max = 16)
    private String password;


    /**
     * 最大网盘容量大小(byte) 5GB
     */
    private Long diskMaxSize;

    /**
     * 角色id
     */
    @NotNull
    private Long roleId;

    /**
     * 创建该用户的create_id
     */
    @NotNull
    private Long userId;
}
